package com.hll.dao;

/**
 * Created by CGL on 2017-06-24 14:18:45.
 */
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseDao<T, Q> {
    T selectByPrimaryKey(Object var1);

    List<T> selectByExample(Q var1);

    List<T> selectByExampleWithBLOBs(Q var1);

    int insert(T var1);

    int insertSelective(T var1);

    int countByExample(Q var1);

    int updateByPrimaryKeySelective(T var1);

    int updateByPrimaryKey(T var1);

    int updateByExampleSelective(@Param("record") T var1, @Param("example") Q var2);

    int updateByExample(@Param("record") T var1, @Param("example") Q var2);

    int updateByExampleWithBLOBs(@Param("record") T var1, @Param("example") Q var2);

    int deleteByPrimaryKey(Object var1);

    int deleteByExample(Q var1);
}
